package org.event.core.event.listen;

import org.event.core.event.TestEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author zhangjm
 * @date 2023年11月29日 16:35
 */
@Component
public class MySpringApplicationListenerForMail implements ApplicationListener<TestEvent> {
    @Override
    public void onApplicationEvent(TestEvent testEvent) {
        Object source = testEvent.getSource();
        System.out.println(source + "改变了. 【邮件事件监听器】将要做出响应....");

    }
}
